#include <errno.h>
#include <iostream>
#include <string>
#include "../../../plcc/net/Server.h"
#include <netinet/in.h>


using namespace std;

int main() {
  Server s1;
  cout << "INADDR_ANY "<<INADDR_ANY << endl;
  Server s(AF_INET, 5566,INADDR_ANY ,SOCK_STREAM);
  //cout << "open" << s.server_socket_.Getfd() << endl;

  try {
    s.Init();
  } catch (int a) {
    cout << "init "<< a <<endl;
//    cout << string(strerror(errno)) << endl;
  }

  try {
    s.Accept();
  } catch (int a) {
    cout<< "accept " << a << endl;
    cout << string(strerror(errno)) << endl;
  }
}
